configure bgp evpn instance route-target

configure bgp evpn instance evpn_instance_name route-target {import | export | both} [add | delete] route_target

Description

Configures route targets for an EVPN instance.

Syntax Description

bgp BGP capability.
evpn EVPN protocol.
instance Specifies configuring an EVPN instance
evpn_instance_name Specifies name of the EVPN instance.
route-target Designates setting the route target association. Default is autoderived import and export.
import Selects import route target.
export Selects export route target.
both Specifies import and export route target mode (default).
add Adds a route target.
delete Deletes a route target.
route_target Route target in format <global-admin-value>:<local-admin-value>.

Default

By default, if you do not specify route target, then the auto-derived values are used.

If you do not specify, import and export route target mode applies

Usage Guidelines

For EBGP applications of EVPN, the auto-derived values will not match between BGP peers since local autonomous system (AS) is used in the derivation, and these differ between EBGP peers.

Note that the route target mode (import, export, or both) is automatically adjusted depending on configuration. For example, if an “import” target exists and you add an “export” target for the same value, the mode is automatically changed to “both”. Similarly, an entry can be deleted by mode. For example, if an entry has mode of “both” and you delete the “import” target of the same value, the entry is not deleted, instead its mode is changed to “export”. An attempt to delete an entry that does not exist (value or mode) produces an error message and no action is taken. For example, if you attempt to delete a route target using “both”, but the configured entry was only configured as “import” an error message appears, and no action is taken.

Example

The following example configures for instance "my_evpn" route target both mode:

# configure bgp evpn instance my_evpn route-target both

History

This command was first available in ExtremeXOS 30.2.

Platform Availability

This command is available on platforms that support the appropriate license. For complete information about software licensing, including how to obtain and upgrade your license and which licenses support the BGP feature,see the Switch Engine v33.1.1 Licensing Guide document.